using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Tongiao.Config;     
using Tongiao.Entity;
namespace Tongiao.ManagerBase
{
                

     public abstract class Tg_LocaImgManagerBase
    {
        public Tg_LocaImgManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity Insert(Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity Update(Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.Update(obj);             
        }
 
 
        public Tg_LocaImgEntity Delete(Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByCreatedBy (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByCreatedBy (string CreatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedBy = CreatedBy;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByCreatedDate (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedDate = CreatedDate;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteById (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteById (Guid Id )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Id = Id;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByIdLocation (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"IdLocation");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IdLocation 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByIdLocation (Guid IdLocation )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.IdLocation = IdLocation;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"IdLocation");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByPhoto (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"Photo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Photo 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByPhoto (string Photo )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Photo = Photo;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"Photo");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByUpdatedBy (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByUpdatedDate (Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>Tg_LocaImgEntity</returns>
        public Tg_LocaImgEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (Tg_LocaImgEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Tg_LocaImgEntity Select(Tg_LocaImgEntity obj)
        { 
            return (Tg_LocaImgEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Tg_LocaImgEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Tg_LocaImgEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Tg_LocaImgEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Tg_LocaImgEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Tg_LocaImgEntity> SelectAllLST()
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Tg_LocaImgEntity()),new Tg_LocaImgEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Tg_LocaImgEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Tg_LocaImgEntity(),option),new Tg_LocaImgEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByCreatedByLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByCreatedByLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByCreatedDateLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByCreatedDateLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByIdLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByIdLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByIdLST (Guid Id )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Id = Id;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByIdLST (Guid Id, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Id = Id;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIdLocation (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"IdLocation");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIdLocation (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IdLocation",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByIdLocationLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IdLocation"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByIdLocationLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IdLocation",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIdLocation (Guid IdLocation )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.IdLocation = IdLocation;  
            return Adapter.SelectByField(obj,"IdLocation");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIdLocation (Guid IdLocation, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.IdLocation = IdLocation;  
            return Adapter.SelectByField(obj,"IdLocation",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByIdLocationLST (Guid IdLocation )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.IdLocation = IdLocation;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IdLocation"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IdLocation duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByIdLocationLST (Guid IdLocation, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.IdLocation = IdLocation;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IdLocation",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"Photo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Photo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByPhotoLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByPhotoLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Photo",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (string Photo )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Photo = Photo;  
            return Adapter.SelectByField(obj,"Photo");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByPhoto (string Photo, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Photo = Photo;  
            return Adapter.SelectByField(obj,"Photo",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByPhotoLST (string Photo )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Photo = Photo;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Photo duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByPhotoLST (string Photo, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.Photo = Photo;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Photo",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedByLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedByLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (Tg_LocaImgEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedDateLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedDateLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Tg_LocaImgEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            Tg_LocaImgEntity obj = new Tg_LocaImgEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectWithConditionLST (Tg_LocaImgEntity obj)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Tg_LocaImgEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Tg_LocaImgEntity></returns>
        public List<Tg_LocaImgEntity> SelectWithConditionLST (Tg_LocaImgEntity obj,SelectOptions option)
        { 
            return  (List<Tg_LocaImgEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Tg_LocaImgEntity());
        }

}
}
